package com.booter.ws.es.model;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

//{"mappings":{"properties":{"id":{"type":"long"},"accNum":{"type":"long"},"balance":{"type":"integer"},"firstname":{"type":"keyword"},"lastname":{"type":"keyword"},"age":{"type":"integer"},"gender":{"type":"keyword"},"address":{"type":"completion"},"employer":{"type":"keyword"},"email":{"type":"completion"},"city":{"type":"keyword"},"state":{"type":"keyword"},"dataTime":{"type":"integer"},"createTime":{"type":"long"},"updateTime":{"type":"long"}}},"aliases":{"es_account":{"is_write_index":false}}}
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Accounts extends BaseEsModel {
    private static final long serialVersionUID = 7334478277533822038L;

    private long accNum;

    private Integer balance;

    private String firstname;

    private String lastname;

    private int age;

    private String gender;

    private String address;

    private String employer;

    private String email;

    private String city;

    private String state;

    @Override

    public String idx() {
        return "idx_accounts";
    }
}
